
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renminbi"></use>
                    </svg>
                    <div class="name">人民币</div>
                    <div class="fontclass">#icon-renminbi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shu"></use>
                    </svg>
                    <div class="name">书</div>
                    <div class="fontclass">#icon-shu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iconfonttingzhi"></use>
                    </svg>
                    <div class="name">停止</div>
                    <div class="fontclass">#icon-iconfonttingzhi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wenjianjiabiheicon"></use>
                    </svg>
                    <div class="name">文件夹 闭合icon</div>
                    <div class="fontclass">#icon-wenjianjiabiheicon</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xingmingyonghumingnicheng"></use>
                    </svg>
                    <div class="name">姓名 用户名 昵称</div>
                    <div class="fontclass">#icon-xingmingyonghumingnicheng</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wangzhanwangzhi"></use>
                    </svg>
                    <div class="name">网站  网址</div>
                    <div class="fontclass">#icon-wangzhanwangzhi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiaoxi"></use>
                    </svg>
                    <div class="name">消息</div>
                    <div class="fontclass">#icon-xiaoxi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weibiaoti101"></use>
                    </svg>
                    <div class="name">修改</div>
                    <div class="fontclass">#icon-weibiaoti101</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pinglun-copy"></use>
                    </svg>
                    <div class="name">评论</div>
                    <div class="fontclass">#icon-pinglun-copy</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuce"></use>
                    </svg>
                    <div class="name">注册</div>
                    <div class="fontclass">#icon-zhuce</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-liuyan"></use>
                    </svg>
                    <div class="name">留言</div>
                    <div class="fontclass">#icon-liuyan</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yanzhengma3"></use>
                    </svg>
                    <div class="name">验证码 (3)</div>
                    <div class="fontclass">#icon-yanzhengma3</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-unie62e"></use>
                    </svg>
                    <div class="name">图片</div>
                    <div class="fontclass">#icon-unie62e</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-download"></use>
                    </svg>
                    <div class="name">下载</div>
                    <div class="fontclass">#icon-download</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhandian"></use>
                    </svg>
                    <div class="name">站点</div>
                    <div class="fontclass">#icon-zhandian</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhaopinhuixuanzhong"></use>
                    </svg>
                    <div class="name">招聘会-选中</div>
                    <div class="fontclass">#icon-zhaopinhuixuanzhong</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-liuliang"></use>
                    </svg>
                    <div class="name">流量</div>
                    <div class="fontclass">#icon-liuliang</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjia"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#icon-tianjia</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-caozuo-fuzhugongneng"></use>
                    </svg>
                    <div class="name">操作-辅助功能</div>
                    <div class="fontclass">#icon-caozuo-fuzhugongneng</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-kehubaifang"></use>
                    </svg>
                    <div class="name">客户拜访</div>
                    <div class="fontclass">#icon-kehubaifang</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gengduo"></use>
                    </svg>
                    <div class="name">更多</div>
                    <div class="fontclass">#icon-gengduo</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appstoreo"></use>
                    </svg>
                    <div class="name">appstoreo</div>
                    <div class="fontclass">#icon-appstoreo</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-barschart"></use>
                    </svg>
                    <div class="name">barschart</div>
                    <div class="fontclass">#icon-barschart</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-file"></use>
                    </svg>
                    <div class="name">file</div>
                    <div class="fontclass">#icon-file</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-home"></use>
                    </svg>
                    <div class="name">home</div>
                    <div class="fontclass">#icon-home</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iconfontdesktop"></use>
                    </svg>
                    <div class="name">iconfontdesktop</div>
                    <div class="fontclass">#icon-iconfontdesktop</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-setting"></use>
                    </svg>
                    <div class="name">setting</div>
                    <div class="fontclass">#icon-setting</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-user"></use>
                    </svg>
                    <div class="name">user</div>
                    <div class="fontclass">#icon-user</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-windowso"></use>
                    </svg>
                    <div class="name">windowso</div>
                    <div class="fontclass">#icon-windowso</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-laiyuan"></use>
                    </svg>
                    <div class="name">来源</div>
                    <div class="fontclass">#icon-laiyuan</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon_folder"></use>
                    </svg>
                    <div class="name">文件夹</div>
                    <div class="fontclass">#icon-icon_folder</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouji"></use>
                    </svg>
                    <div class="name">手机</div>
                    <div class="fontclass">#icon-shouji</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon-test"></use>
                    </svg>
                    <div class="name">暂停</div>
                    <div class="fontclass">#icon-icon-test</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shanchu1"></use>
                    </svg>
                    <div class="name">删除</div>
                    <div class="fontclass">#icon-shanchu1</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiantoushang"></use>
                    </svg>
                    <div class="name">箭头 上</div>
                    <div class="fontclass">#icon-jiantoushang</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinzhi"></use>
                    </svg>
                    <div class="name">禁止</div>
                    <div class="fontclass">#icon-jinzhi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huidaodingbu"></use>
                    </svg>
                    <div class="name">回到顶部</div>
                    <div class="fontclass">#icon-huidaodingbu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shipin1"></use>
                    </svg>
                    <div class="name">视频</div>
                    <div class="fontclass">#icon-shipin1</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yincangmima-"></use>
                    </svg>
                    <div class="name">隐藏密码</div>
                    <div class="fontclass">#icon-yincangmima-</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shijian"></use>
                    </svg>
                    <div class="name">新闻目录</div>
                    <div class="fontclass">#icon-shijian</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yunying"></use>
                    </svg>
                    <div class="name">运营</div>
                    <div class="fontclass">#icon-yunying</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tupian"></use>
                    </svg>
                    <div class="name">图片</div>
                    <div class="fontclass">#icon-tupian</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mulu"></use>
                    </svg>
                    <div class="name">目录</div>
                    <div class="fontclass">#icon-mulu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-out-copy"></use>
                    </svg>
                    <div class="name">退出</div>
                    <div class="fontclass">#icon-out-copy</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bianji-copy"></use>
                    </svg>
                    <div class="name">我的资料</div>
                    <div class="fontclass">#icon-bianji-copy</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wangzhan-copy"></use>
                    </svg>
                    <div class="name">网站</div>
                    <div class="fontclass">#icon-wangzhan-copy</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fanhui"></use>
                    </svg>
                    <div class="name">返回</div>
                    <div class="fontclass">#icon-fanhui</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-arrow-down"></use>
                    </svg>
                    <div class="name">下箭头</div>
                    <div class="fontclass">#icon-arrow-down</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-neirong"></use>
                    </svg>
                    <div class="name">内容</div>
                    <div class="fontclass">#icon-neirong</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chakan"></use>
                    </svg>
                    <div class="name">查看</div>
                    <div class="fontclass">#icon-chakan</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fangda"></use>
                    </svg>
                    <div class="name">放大</div>
                    <div class="fontclass">#icon-fangda</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-youyi-xuanzhong"></use>
                    </svg>
                    <div class="name">右移-选中</div>
                    <div class="fontclass">#icon-youyi-xuanzhong</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-APPshouyetubiao-dingdan"></use>
                    </svg>
                    <div class="name">17@APP首页图标-订单</div>
                    <div class="fontclass">#icon-APPshouyetubiao-dingdan</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zantingcopy"></use>
                    </svg>
                    <div class="name">暂停 copy 16</div>
                    <div class="fontclass">#icon-zantingcopy</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pingtai"></use>
                    </svg>
                    <div class="name">平台</div>
                    <div class="fontclass">#icon-pingtai</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiantouxia"></use>
                    </svg>
                    <div class="name">箭头 上</div>
                    <div class="fontclass">#icon-jiantouxia</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-image"></use>
                    </svg>
                    <div class="name">图片</div>
                    <div class="fontclass">#icon-image</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-kongzhitai-zhushi"></use>
                    </svg>
                    <div class="name">控制台-注释</div>
                    <div class="fontclass">#icon-kongzhitai-zhushi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiechuduanwang"></use>
                    </svg>
                    <div class="name">解除断网</div>
                    <div class="fontclass">#icon-jiechuduanwang</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon--"></use>
                    </svg>
                    <div class="name">向上</div>
                    <div class="fontclass">#icon-icon--</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon--1"></use>
                    </svg>
                    <div class="name">向下</div>
                    <div class="fontclass">#icon-icon--1</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon--2"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#icon-icon--2</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon--3"></use>
                    </svg>
                    <div class="name">减去</div>
                    <div class="fontclass">#icon-icon--3</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huidaodingbu-copy"></use>
                    </svg>
                    <div class="name">回到顶部</div>
                    <div class="fontclass">#icon-huidaodingbu-copy</div>
                </li>

        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
